package com.cz.nongyetongv5.bean;

import java.io.Serializable;

/**
 * 检查人员
 */
public class JianChaRenYuan implements Serializable {

	private String id = null;
	private String name;
	private Integer rank;
	private String code = null;

	private String addTime;
	private String modifyTime;
	private String deleteTime;

	private boolean isAllowRemove = true;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public JianChaRenYuan(String id, String name, Integer rank) {
		this.id = id;
		this.name = name;
		this.rank = rank;
	}

	public JianChaRenYuan(String id, String name, Integer rank, String code) {
		this.id = id;
		this.name = name;
		this.rank = rank;
		this.code = code;
	}

	public JianChaRenYuan(String id, String name, Integer rank, String code,
						  String addTime, String modifyTime, String deleteTime) {
		this.id = id;
		this.name = name;
		this.rank = rank;
		this.code = code;
		this.addTime = addTime;
		this.modifyTime = modifyTime;
		this.deleteTime = deleteTime;
	}

	public JianChaRenYuan() {
	}

	@Override
	public boolean equals(Object o) {

		boolean result = false;

		if (o != null) {

			if (o instanceof JianChaRenYuan) {

				JianChaRenYuan other = (JianChaRenYuan) o;

				if (!result) {
					if (other.getName() != null && this.getName() != null) {

						if (other.getName().equals(this.getName())) {

							result = true;
						}

					}

				}
			}

		}

		return result;

	}

	public boolean isAllowRemove() {
		return isAllowRemove;
	}

	public JianChaRenYuan setAllowRemove(boolean isAllowRemove) {
		this.isAllowRemove = isAllowRemove;

		return this;
	}

	public String getAddTime() {
		return addTime;
	}

	public void setAddTime(String addTime) {
		this.addTime = addTime;
	}

	public String getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getDeleteTime() {
		return deleteTime;
	}

	public void setDeleteTime(String deleteTime) {
		this.deleteTime = deleteTime;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

}
